<div id="cetegoty-menu">
	<div id="cetegoty-menu-middle">
	<?php foreach ( $this->topCategories as $topCategory ) {
		$selected = $this->topCategory->id == $topCategory->id;
	?>	
		<div class="box9">
			<h2 <?php if ($selected) {?>class="active"<?php }?>>
				<a href="<?php print $topCategory->getUrl ()?>"><img alt="малярство" src="<?php	print $topCategory->getSmallImg ()?>"><span><?php print $topCategory->title;?></span></a>
			</h2>
			<ul>
				<?php foreach ( $this->api->Category->findAllSubcategory ( $topCategory->id ) as $category ) {?>
				<?php $selected = $this->subCategory->id == $category->id;?>
				<li <?php if ($selected) print 'class="active"'?>>
					<a href="<?php print $category->getUrl ()?>"><?php print $category->title?></a>
				</li>
				<?php }?>
			</ul>
		</div>
	<?php }?>
	</div>
</div>
<div id="line-catalog"></div>
<div id="product-list">
	<div id="middle">
		<?php print $this->renderControl ( 'listProducts' );?>
	</div>
</div>
